package com.xinyi.shicihui.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author xinyi
 * @desc 朝代信息
 * @date 2022/1/21
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Document(collection = "dynasty")
public class Dynasty {

    @Id
    private String id;

    private String name;

    private String pinYin;
}
